package com.topvision.service.api.impl.glass;

import com.topvision.mapper.glass.SysuploadMapper;
import com.topvision.model.glass.Sysupload;
import com.topvision.service.api.glass.AppSysUploadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Service("appSysUploadImpl")
public class AppSysUploadImpl implements AppSysUploadService {

    @Autowired
    SysuploadMapper sysuploadMapper;

    @Override
    public Sysupload get(String netUrl) {
        Map<String, Object> map = new HashMap<>();
        map.put("filefullpath", netUrl);
        return sysuploadMapper.queryObjectByMap(map);
    }

    @Override
    public void save(Sysupload sysupload) {
        sysuploadMapper.save(sysupload);
    }
}
